<template>
  {{ date }}
  <el-date-picker v-model="date" type="month" placeholder="选择月份"  value-format="YYYY-MM"> 
    <template #default="cell">
      <div class="el-date-table-cell" :class="{ current: cell.isCurrent }">
        <span class="el-date-table-cell__text">{{ cell.text + 1 }}月</span>
      </div>
    </template> 
  </el-date-picker>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
let date = ref('')
</script>